package com.yixin.hospital.service;

import cn.hutool.core.lang.tree.Tree;
import com.yixin.hospital.common.ApiResult;
import com.yixin.hospital.entity.domain.Dept;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yixin.hospital.entity.dto.req.dept.DeptAddReqDTO;
import com.yixin.hospital.entity.dto.req.dept.DeptEditReqDTO;
import com.yixin.hospital.entity.dto.req.dept.TempDeptAddReqDTO;

import java.util.List;

/**
* @author 
* @description 针对表【dept(部门表)】的数据库操作Service
* @createDate 2024-03-24 14:01:37
*/
public interface DeptService extends IService<Dept> {

    ApiResult<List<Tree<Integer>>> treeList();


    ApiResult deptDropList(Integer page, Integer size);

    ApiResult add(DeptAddReqDTO deptAddReqDTO, String userName);

    ApiResult edit(DeptEditReqDTO deptEditReqDTO, String userName);

    ApiResult<?> addTempDept(TempDeptAddReqDTO tempDeptAddReqDTO, Long userId, String userName);

    ApiResult<?> tempDeptList(int currentPage, int pageSize, Long userId);

    ApiResult<?> allTempDeptList(int currentPage, int pageSize, Long userId);
}
